package com.study.a;


/**
 * Calculator类 - 一个简单的计算器程序示例
 * 该类包含程序的入口点，用于演示基本的Java程序结构
 */
public class Calculator {
   private int numberA;
   private int numberB;
   public void setNumberA(int numberA) {
       this.numberA = numberA;
   }
   public void setNumberB(int numberB) {
       this.numberB = numberB;
   }
    public int getNumberA() {
       return numberA;
   }
   public int getNumberB() {
       return numberB;
   }

   public int add() {
       return numberA + numberB;
   }


}
